package com.ambitor.ipro.app.count;

import java.util.MissingResourceException;
import java.util.ResourceBundle;

public class CountPropertiesReader {
	private static final String BUNDLE_NAME = "com.ambitor.ipro.app.count.count_setting";

	private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
			.getBundle(BUNDLE_NAME);

	private CountPropertiesReader() {
	}

	public static String getString(String key) {
		if (key == null)
			return null;
		try {
			String value = RESOURCE_BUNDLE.getString(key);
			if (value == null) {
				return null;
			}
			return value;
		} catch (MissingResourceException e) {
			return null;
		}
	}

	public static void main(String[] args) {
		System.out.println(CountPropertiesReader
				.getString("END_DATE"));
	}
}
